

<% var pageLevelJS = { %>
<%include("/WEB-INF/views/btl/template/include/select2.html"){}%>
<link rel="stylesheet" href="${plugin}/tool/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script  type="text/javascript" src="${plugin}/tool/zTree/js/jquery.ztree.core.min.js"></script>
<script  type="text/javascript" src="${plugin}/tool/zTree/js/jquery.ztree.excheck.min.js"></script>
<script type="text/javascript" src="${acePath}/assets/js/spinbox.min.js"></script>
<script type="text/javascript">
var settings = {
		 modelDomainFlag:"frm"
		 ,modelFlag:"item"
		 ,modelName:"表单项信息"
		 ,key:"${sessionId}" 
		}
</script> 
<script type="text/javascript" src="${ctx}/static/fw/js/fw-tree.js"></script>
<script type="text/javascript" src="${ctx}/static/fw/js/fw-inputTree.js"></script>
<script type="text/javascript" src="${ctx}/static/js/frm/item/edit.js"></script>
<%};%> 
<% var layoutParas =
{"title":"","add":isEmpty(data.id),"formId":"applyeditForm","pageLevelJS":pageLevelJS};
layout("/WEB-INF/views/btl/template/backBasicEditFormTemplate.html", layoutParas){ %>
		<input type="hidden" name="id" value="${data.id}">
		<%if(isEmpty(data.id)){%>
			  <div class="form-group col-md-5">
			     <label class="required-before col-sm-3 control-label no-padding-right" for="name" id="citySelLabel">所属库表:</label>
			     <div class="col-sm-9 inline-height">
	 				<span style="display: inline-block; position: relative; width: 100%; " >  
				    	 <input type="hidden" oldval=""  class="validate[maxSize[50]] treeValue" name="tableId" placeholder="">
					     <input type="text" value="" class="validate[required]  treeSel readonly col-xs-10" readonly="readonly" placeholder="">
					     <a  href="javacript:void(0)">清空</a>
				         <div class="menuContent" treehide="true" style="display:none; position: absolute;z-index:50000">
							<ul id="org" treehide="true" class="ztree search-ztree" style="margin-top:0; width:160px;height: 200px;">
							</ul>
						</div>
				     </span>
			 	 </div>
			  </div>
			  <div class="form-group  col-md-5">
			     	<label class="required-before col-sm-3 control-label no-padding-right" for="typeCode">所属字段:</label>
					 <div class="col-sm-9 inline-height">
						 <select  placeholder="所属字段" oldval="${data.fieldId}" name="fieldId" class="validate[required,maxSize[50]] col-xs-10">
						</select>
				  </div>
			  </div> 
		<%}%>
		<div class="form-group  col-md-5">
			<label class="required-before col-sm-3 control-label no-padding-right" for="label">标签名:</label>
			<div class="col-sm-9 inline-height">
		 		<input type="text" name="label" oldval="${data.label}" value="${data.label}" placeholder="标签名" class="validate[required,maxSize[50]] col-xs-10" />
			</div>
		</div>  
		   <div class="form-group  col-md-5">
		     	<label class="required-before col-sm-3 control-label no-padding-right" for="typeCode">输入框类别:</label>
				 <div class="col-sm-9 inline-height">
					 <select  placeholder="输入框类别" oldval="${data.typeCode}" name="typeCode" class="col-xs-10">
						<% for(res in tys!){ %>
						  <option value="${res.value}">${res.name}</option>
					　　   <% } %>
					</select>
			  </div>
		  </div> 
			<div class="form-group col-md-5">
				<label class="col-sm-3 control-label no-padding-right" for="minVal">最小值:</label>
				<div class="col-sm-9 inline-height">
						<input type="text" oldval="${data.minVal}" value="${data.minVal}" name="minVal"  class="validate[maxSize[50]] col-xs-10" placeholder="最小值" >
				  </div>
				  </div> 
				  <div class="form-group col-md-5">
						<label class="required-before col-sm-3 control-label no-padding-right" for="minLength">最小长度:</label>
						<div class="col-sm-9 inline-height">
		 <input type="text" name="minLength" oldval="${data.minLength}" min="0" value="${data.minLength}" class="num col-xs-10" placeholder="最小长度" >
					</div>
					</div> 
				  <div class="form-group col-md-5">
					<label class="required-before col-sm-3 control-label no-padding-right" for="isNull">能否为空</label>
					<div class="col-sm-9 inline-height">
		 <select placeholder="能否为空" name="isNull" oldval="${data.isNull!'false'}" class="col-xs-10">
						<option value="true">是</option>
						<option value="false">否</option>
					</select>
				</div>
				</div> 
	  		   <div class="form-group  col-md-5">
			     <label class="col-sm-3 control-label no-padding-right" for="tilte">提示信息:</label>
			     <div class="col-sm-9 inline-height">
		 <input type="text" name="tilte" oldval="${data.tilte}" value="${data.tilte}" placeholder="提示信息(默认显示标签名)" class="validate[maxSize[50]] col-xs-10" />
			  </div> 
			  </div> 
			  <div class="form-group col-md-5">
					<label class="col-sm-3 control-label no-padding-right" for="defaultValue">默认值:</label>
					<div class="col-sm-9 inline-height">
		 <input type="text" oldval="${data.defaultValue}" value="${data.defaultValue}" name="defaultVal" class=" col-xs-10" placeholder="默认值" >
				</div>
				</div> 
			  <div class="form-group col-md-5">
					<label class="col-sm-3 control-label no-padding-right" for="maxVal">最大值:</label>
					<div class="col-sm-9 inline-height">
		 <input type="text" name="maxVal" oldval="${data.maxVal}" value="${data.maxVal}" class="validate[maxSize[50]] col-xs-10" placeholder="最大值" >
			  </div>
			  </div> 
			  <div class="form-group col-md-5">
					<label class="required-before col-sm-3 control-label no-padding-right" for="maxLength">最大长度(-1:无限制):</label>
					<div class="col-sm-9 inline-height">
		 			<input type="text" oldval="${data.maxLength}" min="-1" value="${data.maxLength}" name="maxLength" class="num col-xs-10" placeholder="最大长度" >
				</div> 
				</div> 
	  <div class="form-group col-md-5">
	     <label for="remark" class="col-sm-3 control-label no-padding-right">备注:</label>
	     <div class="col-sm-9 inline-height">
		    <input type="text"   oldval="${data.remark}" value="${data.remark}" class="validate[maxSize[50]] col-xs-10" name="remark" placeholder="备注">
		  </div>
	  </div>	  
<%} %>
